﻿<UserControl x:Class="SilverLight.Training.Views.JobTitleCollection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns:nav="clr-namespace:Navigation.Silverlight;assembly=Navigation.Silverlight"
    nav:ViewModel.TypeName="SilverLight.Training.ViewModels.JobTitleDetailsViewModel" 
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <sdk:DataGrid
            x:Name="dtgJobTitle" 
            AutoGenerateColumns="False"
            ItemsSource="{Binding JobTitleCollection, Mode=TwoWay}"
        >
            <sdk:DataGrid.Columns>
                <sdk:DataGridTextColumn
                    Header="ID" 
                    Binding="{Binding Path=ID, Mode=TwoWay}"
                />
                <sdk:DataGridTextColumn
                    Header="Job Title"
                    Binding="{Binding Path=TitleName, Mode=TwoWay}"
                />
                <sdk:DataGridTextColumn 
                    Header="Description" 
                    Binding="{Binding Path=Description, Mode=TwoWay}"
                />
            </sdk:DataGrid.Columns>
        </sdk:DataGrid>
    </Grid>
</UserControl>
